﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseDao
{
    public enum SqlOrder
    {
        DESC,
        ASC,
    }

    public class BaseOrder
    {
        public string Key { get; set; }

        public SqlOrder Order { get; set; }
    }

    public static class ListBaseOrderEx
    {
        public static void Add(this List<BaseOrder> _list, string key, SqlOrder order)
        {
            _list.Add(new BaseOrder { Key = key, Order = order });
        }
    }
}
